package cn.stylefeng.guns.modular.system.mapper;

import cn.stylefeng.guns.modular.system.entity.Exam;
import cn.stylefeng.guns.modular.system.model.ExamDto;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 考试表 Mapper 接口
 * </p>
 *
 * @author zfy
 * @since 2020-08-10
 */
public interface ExamMapper extends BaseMapper<Exam> {

    IPage<ExamDto> examList(@Param("page") Page page,
                            @Param("createUser") Long createUser,
                            @Param("examTitle") String examTitle,
                            @Param("examId") Long examId);

    List<ExamDto> examList2(@Param("createUsers") String[] createUsers,
                            @Param("examMonthIds") String[] examMonthIds,
                            @Param("soldOut") Integer soldOut,
                            @Param("examIds")  String[] examIds);
    IPage<Map<String,Object>> paymentRecord (@Param("page") Page page,
                                             @Param("agentUserId") Long agentUserId,
                                             @Param("name") String name);
}
